package io.github.liuyuhao412.manager.request;

public class LoginResponse extends BaseResponse {
	private String username;
	private String token;

	public LoginResponse() {
	}

	public LoginResponse(Integer id, String username, String token) {
		super(id);
		this.username = username;
		this.token = token;
	}

	// getter 和 setter
	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public static ApiResponse<LoginResponse> success(Integer id, String username, String token) {
		return ApiResponse.success(new LoginResponse(id, username, token));
	}

}
